if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[CICF_FIELD_INFO]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[CICF_FIELD_INFO]
GO

CREATE TABLE [dbo].[CICF_FIELD_INFO] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[TABLE_NAME] [varchar] (64) COLLATE Chinese_PRC_CI_AS NULL ,
	[FIELD_NAME] [varchar] (64) COLLATE Chinese_PRC_CI_AS NULL ,
	[FIELD_TYPE] [varchar] (32) COLLATE Chinese_PRC_CI_AS NULL ,
	[FIELD_MEMO] [varchar] (64) COLLATE Chinese_PRC_CI_AS NULL ,
	[FIELD_ORDER] [int] NULL ,
	[IS_HIDDEN] [int] NULL ,
	[IS_KEY_FIELD] [int] NULL ,
	[CHECK_REPEAT] [int] NULL ,
	[HTML_TYPE] [int] NULL ,
	[RESTRICT_TYPE] [int] NULL ,
	[CHECK_TYPE] [int] NULL ,
	[SELECT_PARA] [varchar] (64) COLLATE Chinese_PRC_CI_AS NULL ,
	[ACCEPT_PARA_NAME] [varchar] (64) COLLATE Chinese_PRC_CI_AS NULL ,
	[BASE_PARA] [varchar] (64) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO

ALTER TABLE [dbo].[CICF_FIELD_INFO] ADD 
	CONSTRAINT [DF_CICF_FIELD_INFO_IS_HIDDEN] DEFAULT (0) FOR [IS_HIDDEN]
GO

